Java Program to find the reverse of a number